package com.ruoyi.seckill.mapper;

import com.ruoyi.seckill.domain.SeckillRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SeckillRecordMapper {

    int insert(SeckillRecord record);

    SeckillRecord selectByUserAndGoods(@Param("userId") Long userId, @Param("goodsId") Long goodsId);

    int updateStatus(@Param("id") Long id, @Param("status") Integer status);

    int deleteById(@Param("id") Long id);
}
